#-------------------------------------------------
#
# Project created by Qt5.9.1 2021-03-08T08:42:36
# created by HUAHAIYAN
#-------------------------------------------------

TEMPLATE = app

QMAKE_CXXFLAGS+=-std=c++11

TARGET = XPlatForm

CONFIG += c++11
CONFIG += resources_big

QT     += core gui network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

OBJECTS_DIR		+= obj
MOC_DIR                   += moc
UI_DIR			+= forms
RCC_DIR			+= rccs

#昆仑通态操作屏设置时间的库
unix:LIBS +=-L/usr/local/MCGS/sysroot-mcgs/usr/lib -lmcgs-hal

FORMS += \
    sharedviews/controlactionwidget.ui \
    sharedviews/numerinputdialog.ui \
    sharedviews/parametersetdialog.ui \
    sharedviews/passworddialog.ui \
    sharedviews/patternmanagewidget.ui \
    sharedviews/patternselectwidget.ui \
    sharedviews/promptdialog.ui \
    sharedviews/sensorinputwidget.ui \
    sharedviews/systemmanagedialog.ui \
    sharedviews/wordsinputdialog.ui \
    mctype/patternsingleboard/mainUI/mainwidget.ui \
    sharedviews/mcheaddialog.ui \
    sharedviews/headspacingsheetdialog.ui \
    sharedviews/fileselectdialog.ui \
    sharedviews/debuginfodialog.ui \
    sharedviews/knifegapparadialog.ui \
    sharedviews/shuttlebottomlinedialog.ui \
    sharedviews/patternpreviewwidget.ui


HEADERS += \
    main.h \
    items/paraitem.h \
    items/sensoritem.h \
    machine/comport.h \
    machine/error.h \
    machine/machine.h \
    machine/qbindtcpsocket.h \
    machine/tcpclient.h \
    machine/comm/comm.h \
    machine/comm/config.h \
    machine/comm/crc16.h \
    machine/comm/crc32.h \
    machine/comm/datadef.h \
    machine/comm/protocol.h \
    machine/comm/typedef.h \
    machine/qextserial/qextserialbase.h \
    machine/qextserial/qextserialport.h \
    items/outctrlitem.h \
    items/shortcutitem.h \
    items/cmdconfig.h \
    items/fileitem.h \
    settings/settings.h \
    sharedviews/controlactionwidget.h \
    sharedviews/numerinputdialog.h \
    sharedviews/parametersetdialog.h \
    sharedviews/passworddialog.h \
    sharedviews/patternmanagewidget.h \
    sharedviews/patternselectwidget.h \
    sharedviews/promptdialog.h \
    sharedviews/sensorinputwidget.h \
    sharedviews/systemmanagedialog.h \
    sharedviews/wordsinputdialog.h \
    sharedviews/mybutton.h \
    mctype/mainwidgetfunction.h \
    sharedviews/setcontrolstyle.h \
    items/itemsmanage.h \
    items/assistitem.h \
    items/patternsetitem.h \
    mctype/patternsingleboard/mainUI/mainwidget.h \
    settings/lotsettings.h \
    machine/lotmachine.h \
    items/parasetitem.h \
    mctype/machinetypefun.h \
    machine/gatewaytcpclient.h \
    items/errorcodestateitem.h \
    mctype/patternsingleboard/function/highsinglequilting.h \
    sharedviews/mcheaddialog.h \
    sharedviews/headspacingsheetdialog.h \
    mctype/patternsingleboard/function/fiveheadprecisionsewing.h \
    sharedviews/fileselectdialog.h \
    sharedviews/debuginfodialog.h \
    items/nineitem.h \
    mctype/patternsingleboard/function/clothingmac.h \
    mctype/patternsingleboard/function/multineedlerotary.h \
    mctype/patternsingleboard/function/flatcuttingmac.h \
    machine/mytcpserver.h \
    sharedviews/knifegapparadialog.h \
    mctype/patternsingleboard/function/thickwiringmac.h \
    mctype/patternsingleboard/function/flyflatcutting.h \
    mctype/patternsingleboard/function/drawingmac.h \
    sharedviews/shuttlebottomlinedialog.h \
    datafile/hpgl/importhpgl.h \
    datafile/hpgl/marker.h \
    datafile/hpgl/plotbitmap.h \
    datafile/hpgl/typedef.h \
    datafile/hpgl/vectorfont.h \
    datafile/datafiledsr.h \
    datafile/datafiledst.h \
    datafile/datafilequi.h \
    datafile/datafilequix.h \
    datafile/dataoperat.h \
    datafile/dsrcryption.h \
    datafile/embdata.h \
    sharedviews/patternpreviewwidget.h \
    datafile/dxf/dl_attributes.h \
    datafile/dxf/dl_codes.h \
    datafile/dxf/dl_creationadapter.h \
    datafile/dxf/dl_creationinterface.h \
    datafile/dxf/dl_dxf.h \
    datafile/dxf/dl_entities.h \
    datafile/dxf/dl_exception.h \
    datafile/dxf/dl_extrusion.h \
    datafile/dxf/dl_global.h \
    datafile/dxf/dl_writer.h \
    datafile/dxf/dl_writer_ascii.h \
    datafile/dxf_tools.h \
    datafile/hank_CreationClass.h

SOURCES += \
    main.cpp \
    items/paraitem.cpp \
    items/sensoritem.cpp \
    machine/comport.cpp \
    machine/error.cpp \
    machine/machine.cpp \
    machine/qbindtcpsocket.cpp \
    machine/tcpclient.cpp \
    machine/comm/comm.cpp \
    machine/comm/crc16.cpp \
    machine/comm/crc32.cpp \
    machine/qextserial/qextserialbase.cpp \
    machine/qextserial/qextserialport.cpp \
    items/outctrlitem.cpp \
    items/shortcutitem.cpp \
    items/fileitem.cpp \
    settings/settings.cpp \
    sharedviews/controlactionwidget.cpp \
    sharedviews/numerinputdialog.cpp \
    sharedviews/parametersetdialog.cpp \
    sharedviews/passworddialog.cpp \
    sharedviews/patternmanagewidget.cpp \
    sharedviews/patternselectwidget.cpp \
    sharedviews/promptdialog.cpp \
    sharedviews/sensorinputwidget.cpp \
    sharedviews/systemmanagedialog.cpp \
    sharedviews/wordsinputdialog.cpp \
    sharedviews/mybutton.cpp \
    mctype/mainwidgetfunction.cpp \
    sharedviews/setcontrolstyle.cpp \
    items/itemsmanage.cpp \
    items/assistitem.cpp \
    items/patternsetitem.cpp \
    mctype/patternsingleboard/mainUI/mainwidget.cpp \
    machine/lotmachine.cpp \
    items/parasetitem.cpp \
    mctype/machinetypefun.cpp \
    machine/gatewaytcpclient.cpp \
    items/errorcodestateitem.cpp \
    mctype/patternsingleboard/function/highsinglequilting.cpp \
    sharedviews/mcheaddialog.cpp \
    sharedviews/headspacingsheetdialog.cpp \
    mctype/patternsingleboard/function/fiveheadprecisionsewing.cpp \
    sharedviews/fileselectdialog.cpp \
    sharedviews/debuginfodialog.cpp \
    items/nineitem.cpp \
    mctype/patternsingleboard/function/clothingmac.cpp \
    mctype/patternsingleboard/function/multineedlerotary.cpp \
    mctype/patternsingleboard/function/flatcuttingmac.cpp \
    machine/mytcpserver.cpp \
    sharedviews/knifegapparadialog.cpp \
    mctype/patternsingleboard/function/thickwiringmac.cpp \
    mctype/patternsingleboard/function/flyflatcutting.cpp \
    mctype/patternsingleboard/function/drawingmac.cpp \
    sharedviews/shuttlebottomlinedialog.cpp \
    datafile/hpgl/importhpgl.cpp \
    datafile/hpgl/marker.cpp \
    datafile/hpgl/plotbitmap.cpp \
    datafile/hpgl/vectorfont.cpp \
    datafile/datafiledsr.cpp \
    datafile/datafiledst.cpp \
    datafile/datafilequi.cpp \
    datafile/datafilequix.cpp \
    datafile/dataoperat.cpp \
    datafile/dsrcryption.cpp \
    datafile/embdata.cpp \
    sharedviews/patternpreviewwidget.cpp \
    datafile/dxf/dl_dxf.cpp \
    datafile/dxf/dl_writer_ascii.cpp \
    datafile/dxf_tools.cpp \
    datafile/hank_CreationClass.cpp


#windows下调用库
#win32:LIBS += $$PWD/../../HMI-Widget/XPlatform/Dll/Machine.dll
#win32:LIBS += $$PWD/../../HMI-Widget/XPlatform/Dll/DataFileComb.dll

#linux下调用库
#unix:LIBS += $$PWD/../../HMI-Widget/XPlatform/Dll/Machine

#RESOURCES += \
#    bf.qrc

unix:INSTALLS += target
unix:target.path=/storage/oprt

TRANSLATIONS += chinese.ts\
english.ts\
spanish.ts\
bengal.ts\
turkey.ts\
denmark.ts\
vietnamese.ts


unix:HEADERS           += machine/qextserial/posix_qextserialport.h
unix:SOURCES           += machine/qextserial/posix_qextserialport.cpp
unix:DEFINES            += _TTY_POSIX_

win32:HEADERS          += machine/qextserial/win_qextserialport.h
win32:SOURCES          += machine/qextserial/win_qextserialport.cpp
win32:DEFINES           += _TTY_WIN_

